const runtime.maxAlloc

18 uses

	runtime (current package)
		arena.go#L541: 	if overflow || n < 0 || mem > maxAlloc {
		chan.go#L87: 	if overflow || mem > maxAlloc-hchanSize || size < 0 {
		malloc.go#L217: 	maxAlloc = (1 << heapAddrBits) - (1-_64bit)*1
		malloc.go#L1761: 	if overflow || mem > maxAlloc || n < 0 {
		map_swiss.go#L76: 	return maps.NewMap(t, uintptr(hint), m, maxAlloc)
		slice.go#L43: 		if overflow || tomem > maxAlloc || tolen < 0 {
		slice.go#L103: 	if overflow || mem > maxAlloc || len < 0 || len > cap {
		slice.go#L110: 		if overflow || mem > maxAlloc || len < 0 {
		slice.go#L214: 		overflow = uintptr(newcap) > maxAlloc
		slice.go#L220: 		overflow = uintptr(newcap) > maxAlloc/goarch.PtrSize
		slice.go#L233: 		overflow = uintptr(newcap) > (maxAlloc >> shift)
		slice.go#L258: 	if overflow || capmem > maxAlloc {
		slice.go#L396: 	if uintptr(len) > maxAlloc {
		string.go#L329: 	if uintptr(size) > maxAlloc/4 {
		string.go#L348: 	if n < 0 || uintptr(n) > maxAlloc {
		string.go#L553: 		p := (*[maxAlloc/2 - 1]byte)(unsafe.Pointer(s))
		string.go#L591: 	p := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(s))
		string.go#L608: 	str := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(strw))